package cn.wizzer.app.web.modules.controllers.open;

import cn.wizzer.app.sys.modules.services.SysBankLibService;
import cn.wizzer.framework.util.Result;
import com.alibaba.dubbo.config.annotation.Reference;
import org.nutz.ioc.loader.annotation.Inject;
import org.nutz.ioc.loader.annotation.IocBean;
import org.nutz.mvc.annotation.At;
import org.nutz.mvc.annotation.Ok;

@IocBean
@At("/open/bank")
public class ApiBankController {
    @Inject
    @Reference
    private SysBankLibService bankLibService;

    @At
    @Ok("json")
    public Result list() {
        return Result.successNonNull(bankLibService.list());
    }
}
